package com.dk.action;

import com.dk.domain.ActionEntity;
import com.dk.domain.ApiAutoTestEntity;
import com.dk.exception.ExcelDataException;

/**
 * 动作配置类
 */
public class ActionContext {
    //定义策略
    ActionStrategy actionStrategy;
    //初始化策略对象
    public ActionContext(ActionStrategy actionStrategy){
        this.actionStrategy = actionStrategy;
    }
    //执行策略
    public void excuteAction(ActionEntity actionEntity) throws ExcelDataException {
        actionStrategy.Action(actionEntity);
    }
}
